<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkNumerableIcon</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="theming.html" title="Part III. GTK+中的主题">
<link rel="prev" href="gtk3-Themeable-Stock-Images.html" title="Themeable Stock Images">
<link rel="next" href="gtk3-Resource-Files.html" title="Resource Files">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-Themeable-Stock-Images.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="theming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-Resource-Files.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkNumerableIcon.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkNumerableIcon.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkNumerableIcon"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkNumerableIcon.top_of_page"></a>GtkNumerableIcon</span></h2>
<p>GtkNumerableIcon — A GIcon that allows numbered emblems</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkNumerableIcon.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon">GtkNumerableIcon</a>;
<a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-new" title="gtk_numerable_icon_new ()">gtk_numerable_icon_new</a>              (<em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>);
<a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-new-with-style-context" title="gtk_numerable_icon_new_with_style_context ()">gtk_numerable_icon_new_with_style_context</a>
                                                        (<em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-get-background-gicon" title="gtk_numerable_icon_get_background_gicon ()">gtk_numerable_icon_get_background_gicon</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()">gtk_numerable_icon_set_background_gicon</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-get-background-icon-name" title="gtk_numerable_icon_get_background_icon_name ()">gtk_numerable_icon_get_background_icon_name</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()">gtk_numerable_icon_set_background_icon_name</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-get-count" title="gtk_numerable_icon_get_count ()">gtk_numerable_icon_get_count</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()">gtk_numerable_icon_set_count</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-get-label" title="gtk_numerable_icon_get_label ()">gtk_numerable_icon_get_label</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()">gtk_numerable_icon_set_label</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);
<a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *   <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-get-style-context" title="gtk_numerable_icon_get_style_context ()">gtk_numerable_icon_get_style_context</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()">gtk_numerable_icon_set_style_context</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *style</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkNumerableIcon.description"></a><h2>Description</h2>
<p>
GtkNumerableIcon is a subclass of <a href="../gio/GEmblemedIcon.html"><span class="type">GEmblemedIcon</span></a> that can
show a number or short string as an emblem. The number can
be overlayed on top of another emblem, if desired.
</p>
<p>
It supports theming by taking font and color information
from a provided <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>; see
<a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()"><code class="function">gtk_numerable_icon_set_style_context()</code></a>.
</p>
<p>
</p>
<div class="example">
<a name="id3108685"></a><p class="title"><b>Example 42. Typical numerable icons</b></p>
<div class="example-contents">
<img src="numerableicon.png"><img src="numerableicon2.png">
</div>
</div>
<p><br class="example-break">
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkNumerableIcon.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkNumerableIcon"></a><h3>struct GtkNumerableIcon</h3>
<pre class="programlisting">struct GtkNumerableIcon {
  GEmblemedIcon parent;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-new"></a><h3>gtk_numerable_icon_new ()</h3>
<pre class="programlisting"><a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             gtk_numerable_icon_new              (<em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>);</pre>
<p>
Creates a new unthemed <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_icon</code></em> :</span></p></td>
<td>a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> to overlay on</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-new-with-style-context"></a><h3>gtk_numerable_icon_new_with_style_context ()</h3>
<pre class="programlisting"><a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             gtk_numerable_icon_new_with_style_context
                                                        (<em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> which will themed according
to the passed <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>. This is a convenience constructor
that calls <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()"><code class="function">gtk_numerable_icon_set_style_context()</code></a> internally.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_icon</code></em> :</span></p></td>
<td>a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> to overlay on</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-get-background-gicon"></a><h3>gtk_numerable_icon_get_background_gicon ()</h3>
<pre class="programlisting"><a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             gtk_numerable_icon_get_background_gicon
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre>
<p>
Returns the <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> that was set as the base background image, or
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none. The caller of this function does not own
a reference to the returned <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-set-background-gicon"></a><h3>gtk_numerable_icon_set_background_gicon ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_numerable_icon_set_background_gicon
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);</pre>
<p>
Updates the icon to use <em class="parameter"><code>icon</code></em> as the base background image.
If <em class="parameter"><code>icon</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>self</code></em> will go back using style information
or default theming for its background image.
</p>
<p>
If this method is called and an icon name was already set as
background for the icon, <em class="parameter"><code>icon</code></em> will be used, i.e. the last method
called between <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()"><code class="function">gtk_numerable_icon_set_background_gicon()</code></a> and
<a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()"><code class="function">gtk_numerable_icon_set_background_icon_name()</code></a> has always priority.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
<td>a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-get-background-icon-name"></a><h3>gtk_numerable_icon_get_background_icon_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_numerable_icon_get_background_icon_name
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre>
<p>
Returns the icon name used as the base background image,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an icon name, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-set-background-icon-name"></a><h3>gtk_numerable_icon_set_background_icon_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_numerable_icon_set_background_icon_name
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre>
<p>
Updates the icon to use the icon named <em class="parameter"><code>icon_name</code></em> from the
current icon theme as the base background image. If <em class="parameter"><code>icon_name</code></em>
is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>self</code></em> will go back using style information or default
theming for its background image.
</p>
<p>
If this method is called and a <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> was already set as
background for the icon, <em class="parameter"><code>icon_name</code></em> will be used, i.e. the
last method called between <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()"><code class="function">gtk_numerable_icon_set_background_icon_name()</code></a>
and <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()"><code class="function">gtk_numerable_icon_set_background_gicon()</code></a> has always priority.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td>
<td>an icon name, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-get-count"></a><h3>gtk_numerable_icon_get_count ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_numerable_icon_get_count        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre>
<p>
Returns the value currently displayed by <em class="parameter"><code>self</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the currently displayed value</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-set-count"></a><h3>gtk_numerable_icon_set_count ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_numerable_icon_set_count        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre>
<p>
Sets the currently displayed value of <em class="parameter"><code>self</code></em> to <em class="parameter"><code>count</code></em>.
</p>
<p>
The numeric value is always clamped to make it two digits, i.e.
between -99 and 99. Setting a count of zero removes the emblem.
If this method is called, and a label was already set on the icon,
it will automatically be reset to <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> before rendering the number,
i.e. the last method called between <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()"><code class="function">gtk_numerable_icon_set_count()</code></a>
and <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()"><code class="function">gtk_numerable_icon_set_label()</code></a> has always priority.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>a number between -99 and 99</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-get-label"></a><h3>gtk_numerable_icon_get_label ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_numerable_icon_get_label        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre>
<p>
Returns the currently displayed label of the icon, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the currently displayed label</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-set-label"></a><h3>gtk_numerable_icon_set_label ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_numerable_icon_set_label        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
<p>
Sets the currently displayed value of <em class="parameter"><code>self</code></em> to the string
in <em class="parameter"><code>label</code></em>. Setting an empty label removes the emblem.
</p>
<p>
Note that this is meant for displaying short labels, such as
roman numbers, or single letters. For roman numbers, consider
using the Unicode characters U+2160 - U+217F. Strings longer
than two characters will likely not be rendered very well.
</p>
<p>
If this method is called, and a number was already set on the
icon, it will automatically be reset to zero before rendering
the label, i.e. the last method called between
<a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()"><code class="function">gtk_numerable_icon_set_label()</code></a> and <a class="link" href="gtk3-GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()"><code class="function">gtk_numerable_icon_set_count()</code></a>
has always priority.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>a short label, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-get-style-context"></a><h3>gtk_numerable_icon_get_style_context ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *   gtk_numerable_icon_get_style_context
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre>
<p>
Returns the <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> used by the icon for theming,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
This object is internal to GTK+ and should not be unreffed.
Use <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> if you want to keep it around. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-numerable-icon-set-style-context"></a><h3>gtk_numerable_icon_set_style_context ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_numerable_icon_set_style_context
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *style</code></em>);</pre>
<p>
Updates the icon to fetch theme information from the
given <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkNumerableIcon.html#GtkNumerableIcon" title="struct GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>